<button mat-raised-button
        matTooltip="Info about the action"
        [matTooltipDisabled]="disabled.value"
        aria-label="Button that displays a tooltip that can be programatically disabled">
  Action
</button>

<mat-checkbox [formControl]="disabled" class="example-disabled-checkbox">
  Tooltip disabled
</mat-checkbox>
